package com.example.book_recommend.dao;

import com.example.book_recommend.entity.Privilege;
import com.example.book_recommend.entity.RolePrivilege;
import com.example.book_recommend.entity.RolePrivilegeKey;

public interface RolePrivilegeMapper {
    int deleteByPrimaryKey(RolePrivilegeKey key);

    int insert(RolePrivilege record);

    int insertSelective(RolePrivilege record);

    RolePrivilege selectByPrimaryKey(RolePrivilegeKey key);

    int updateByPrimaryKeySelective(RolePrivilege record);

    int updateByPrimaryKey(RolePrivilege record);

    Privilege[] getPrivilegesByRole0(Integer roleId);

    Integer[] getPrivilegesByRoleId(Integer roleId);

    Integer deleteByRole(Integer roleId);

}